package com.lancoo.ccas52.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 环节
 * </p>
 *
 * @author quin.song
 * @since 2023-01-03
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(of={"taskId","baseSegmentId"})
@ApiModel(value = "Segment对象", description = "环节")
public class Segment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "segment_id", type = IdType.AUTO)
    private Long segmentId;

    private Integer taskId;

    private String baseSegmentId;

    private String segmentName;

    @ApiModelProperty("代码")
    private String segmentCode;

    @ApiModelProperty("环节类别id")
    private String segmentTypeId;

    @ApiModelProperty("环节类别")
    private String segmentType;

    @ApiModelProperty("学院id  开课单位")
    private String collegeId;

    private String collegeName;

    @ApiModelProperty("学分")
    private Double credit;

    @ApiModelProperty("周数")
    private Integer weekNum;

    @ApiModelProperty("课程备注")
    private String description;

    @ApiModelProperty("1:主修  2：辅修")
    private Integer studyNature;

    @ApiModelProperty("操作状态 0未开启  1已开启  2停开（区分申请变更）")
    private Integer isEnable;
}
